# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(Yoga_noAndroid)

add_subdirectory(fb)
add_subdirectory(yogacore)

add_compile_options(
    -fno-omit-frame-pointer
    -fexceptions
    -fvisibility=hidden
    -ffunction-sections
    -fdata-sections
    -Wall
    -std=c++11)

file(GLOB jni_SRC
        yoga/jni/*.cpp)


add_library(yoga SHARED ${jni_SRC})
add_definitions(-DDEBUG -DOHOSME)

#target_include_directories(yoga PRIVATE
#    ${yogacore_DIR})

target_link_libraries(yoga -Wl,--gc-sections, yogacore hilog_ndk.z)
